# Contributor: Andrej Kolchin <alpine@kaathewise.net>
# Maintainer: Andrej Kolchin <alpine@kaathewise.net>
pkgname=futhark
pkgver=0.25.23
pkgrel=0
pkgdesc="A data-parallel functional programming language"
url="https://futhark-lang.org/"
arch="aarch64 x86_64" # Limited by Cabal, which in turn is limited by GHC
license="ISC"
makedepends="make cabal zlib-dev ncurses-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/diku-dk/futhark/archive/v$pkgver.tar.gz"

build() {
	make configure
	make build
}

check() {
	make unittest
}

package() {
	PREFIX="$pkgdir"/usr/ make install
}

sha512sums="
0b122c48f0e4e116c6ba64cec73db7c640897c73d69310f05863bf44b81785fce308a42f717bec5ce82e6046da1df6ade865c9b5200ed57fb43672a502edf101  futhark-0.25.23.tar.gz
"
